<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Epigraph: include/constraint.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Epigraph
   </div>
   <div id="projectbrief">Convex Optimization in C++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">constraint.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="expressions_8hpp_source.html">expressions.hpp</a>&quot;</code><br />
<code>#include &lt;variant&gt;</code><br />
</div>
<p><a href="constraint_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcvx_1_1Constraint.html">cvx::Constraint</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a19ae6dab85befb1637b466555a80dbe1"><td class="memItemLeft" align="right" valign="top">Constraint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#a19ae6dab85befb1637b466555a80dbe1">cvx::equalTo</a> (const Scalar &amp;lhs, const Scalar &amp;rhs)</td></tr>
<tr class="memdesc:a19ae6dab85befb1637b466555a80dbe1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an equality constraint: lhs == rhs.  <a href="constraint_8hpp.html#a19ae6dab85befb1637b466555a80dbe1">More...</a><br /></td></tr>
<tr class="separator:a19ae6dab85befb1637b466555a80dbe1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdc34f6fa683a0f38f352295dad8981f"><td class="memItemLeft" align="right" valign="top">Constraint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#acdc34f6fa683a0f38f352295dad8981f">cvx::greaterThan</a> (const Scalar &amp;lhs, const Scalar &amp;rhs)</td></tr>
<tr class="memdesc:acdc34f6fa683a0f38f352295dad8981f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a greater than or equal constraint: lhs &gt;= rhs.  <a href="constraint_8hpp.html#acdc34f6fa683a0f38f352295dad8981f">More...</a><br /></td></tr>
<tr class="separator:acdc34f6fa683a0f38f352295dad8981f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab66996674d0127fea7f2615269365fe8"><td class="memItemLeft" align="right" valign="top">Constraint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#ab66996674d0127fea7f2615269365fe8">cvx::lessThan</a> (const Scalar &amp;lhs, const Scalar &amp;rhs)</td></tr>
<tr class="memdesc:ab66996674d0127fea7f2615269365fe8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a less than or equal constraint: lhs &lt;= rhs.  <a href="constraint_8hpp.html#ab66996674d0127fea7f2615269365fe8">More...</a><br /></td></tr>
<tr class="separator:ab66996674d0127fea7f2615269365fe8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6ea445abc1a5f95514d8a67ba28ad65"><td class="memItemLeft" align="right" valign="top">Constraint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#ac6ea445abc1a5f95514d8a67ba28ad65">cvx::box</a> (const Scalar &amp;lower, const Scalar &amp;middle, const Scalar &amp;upper)</td></tr>
<tr class="memdesc:ac6ea445abc1a5f95514d8a67ba28ad65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a box constraint: lower &lt;= middle &lt;= upper.  <a href="constraint_8hpp.html#ac6ea445abc1a5f95514d8a67ba28ad65">More...</a><br /></td></tr>
<tr class="separator:ac6ea445abc1a5f95514d8a67ba28ad65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8c695dd723a21fbbf90f424685f7247"><td class="memTemplParams" colspan="2"><a id="ae8c695dd723a21fbbf90f424685f7247"></a>
template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:ae8c695dd723a21fbbf90f424685f7247"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><b>cvx::equalTo</b> (const Eigen::MatrixBase&lt; Derived &gt; &amp;lhs, const Scalar &amp;rhs)</td></tr>
<tr class="separator:ae8c695dd723a21fbbf90f424685f7247"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a430e9773f1927b043bdd2b3bf4dac4b6"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:a430e9773f1927b043bdd2b3bf4dac4b6"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#a430e9773f1927b043bdd2b3bf4dac4b6">cvx::equalTo</a> (const Scalar &amp;lhs, const Eigen::MatrixBase&lt; Derived &gt; &amp;rhs)</td></tr>
<tr class="memdesc:a430e9773f1927b043bdd2b3bf4dac4b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an equality constraint: lhs == rhs.  <a href="constraint_8hpp.html#a430e9773f1927b043bdd2b3bf4dac4b6">More...</a><br /></td></tr>
<tr class="separator:a430e9773f1927b043bdd2b3bf4dac4b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83abda9c447832b598f853078bdb8966"><td class="memTemplParams" colspan="2">template&lt;typename DerivedLhs , typename DerivedRhs &gt; </td></tr>
<tr class="memitem:a83abda9c447832b598f853078bdb8966"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#a83abda9c447832b598f853078bdb8966">cvx::equalTo</a> (const Eigen::MatrixBase&lt; DerivedLhs &gt; &amp;lhs, const Eigen::MatrixBase&lt; DerivedRhs &gt; &amp;rhs)</td></tr>
<tr class="memdesc:a83abda9c447832b598f853078bdb8966"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an equality constraint: lhs == rhs.  <a href="constraint_8hpp.html#a83abda9c447832b598f853078bdb8966">More...</a><br /></td></tr>
<tr class="separator:a83abda9c447832b598f853078bdb8966"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91b384bbdb605f57390341e94eba80a1"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:a91b384bbdb605f57390341e94eba80a1"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#a91b384bbdb605f57390341e94eba80a1">cvx::lessThan</a> (const Eigen::MatrixBase&lt; Derived &gt; &amp;lhs, const Scalar &amp;rhs)</td></tr>
<tr class="memdesc:a91b384bbdb605f57390341e94eba80a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a less than or equal constraint: lhs &lt;= rhs.  <a href="constraint_8hpp.html#a91b384bbdb605f57390341e94eba80a1">More...</a><br /></td></tr>
<tr class="separator:a91b384bbdb605f57390341e94eba80a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41ba5f4943a13d2265aedbf8de1f45ef"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:a41ba5f4943a13d2265aedbf8de1f45ef"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#a41ba5f4943a13d2265aedbf8de1f45ef">cvx::lessThan</a> (const Scalar &amp;lhs, const Eigen::MatrixBase&lt; Derived &gt; &amp;rhs)</td></tr>
<tr class="memdesc:a41ba5f4943a13d2265aedbf8de1f45ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a less than or equal constraint: lhs &lt;= rhs.  <a href="constraint_8hpp.html#a41ba5f4943a13d2265aedbf8de1f45ef">More...</a><br /></td></tr>
<tr class="separator:a41ba5f4943a13d2265aedbf8de1f45ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92e44c5dfa714835c1ab825db8da7653"><td class="memTemplParams" colspan="2">template&lt;typename DerivedLhs , typename DerivedRhs &gt; </td></tr>
<tr class="memitem:a92e44c5dfa714835c1ab825db8da7653"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#a92e44c5dfa714835c1ab825db8da7653">cvx::lessThan</a> (const Eigen::MatrixBase&lt; DerivedLhs &gt; &amp;lhs, const Eigen::MatrixBase&lt; DerivedRhs &gt; &amp;rhs)</td></tr>
<tr class="memdesc:a92e44c5dfa714835c1ab825db8da7653"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a less than or equal constraint: lhs &lt;= rhs.  <a href="constraint_8hpp.html#a92e44c5dfa714835c1ab825db8da7653">More...</a><br /></td></tr>
<tr class="separator:a92e44c5dfa714835c1ab825db8da7653"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0e99c4d1f884f47b6c9f87d82c4cf5b"><td class="memTemplParams" colspan="2">template&lt;typename DerivedLhs , typename DerivedRhs &gt; </td></tr>
<tr class="memitem:ac0e99c4d1f884f47b6c9f87d82c4cf5b"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#ac0e99c4d1f884f47b6c9f87d82c4cf5b">cvx::greaterThan</a> (const Eigen::MatrixBase&lt; DerivedLhs &gt; &amp;lhs, const Eigen::MatrixBase&lt; DerivedRhs &gt; &amp;rhs)</td></tr>
<tr class="memdesc:ac0e99c4d1f884f47b6c9f87d82c4cf5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a greater than or equal constraint: lhs &gt;= rhs.  <a href="constraint_8hpp.html#ac0e99c4d1f884f47b6c9f87d82c4cf5b">More...</a><br /></td></tr>
<tr class="separator:ac0e99c4d1f884f47b6c9f87d82c4cf5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d551a3d671699679e8ef965d4c4e807"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:a3d551a3d671699679e8ef965d4c4e807"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#a3d551a3d671699679e8ef965d4c4e807">cvx::greaterThan</a> (const Scalar &amp;lhs, const Eigen::MatrixBase&lt; Derived &gt; &amp;rhs)</td></tr>
<tr class="memdesc:a3d551a3d671699679e8ef965d4c4e807"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a greater than or equal constraint: lhs &gt;= rhs.  <a href="constraint_8hpp.html#a3d551a3d671699679e8ef965d4c4e807">More...</a><br /></td></tr>
<tr class="separator:a3d551a3d671699679e8ef965d4c4e807"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaca6a5bd054a7fb42e93b2e7cf143e79"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:aaca6a5bd054a7fb42e93b2e7cf143e79"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#aaca6a5bd054a7fb42e93b2e7cf143e79">cvx::greaterThan</a> (const Eigen::MatrixBase&lt; Derived &gt; &amp;lhs, const Scalar &amp;rhs)</td></tr>
<tr class="memdesc:aaca6a5bd054a7fb42e93b2e7cf143e79"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a greater than or equal constraint: lhs &gt;= rhs.  <a href="constraint_8hpp.html#aaca6a5bd054a7fb42e93b2e7cf143e79">More...</a><br /></td></tr>
<tr class="separator:aaca6a5bd054a7fb42e93b2e7cf143e79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca2addc9b4392c2267258d392de9d831"><td class="memTemplParams" colspan="2">template&lt;typename DerivedLower , typename DerivedMiddle , typename DerivedUpper &gt; </td></tr>
<tr class="memitem:aca2addc9b4392c2267258d392de9d831"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#aca2addc9b4392c2267258d392de9d831">cvx::box</a> (const Eigen::MatrixBase&lt; DerivedLower &gt; &amp;lower, const Eigen::MatrixBase&lt; DerivedMiddle &gt; &amp;middle, const Eigen::MatrixBase&lt; DerivedUpper &gt; &amp;upper)</td></tr>
<tr class="memdesc:aca2addc9b4392c2267258d392de9d831"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a box constraint: lower &lt;= middle &lt;= upper.  <a href="constraint_8hpp.html#aca2addc9b4392c2267258d392de9d831">More...</a><br /></td></tr>
<tr class="separator:aca2addc9b4392c2267258d392de9d831"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addf25d6ed69ccfa6d90497d28384864a"><td class="memTemplParams" colspan="2">template&lt;typename Derived &gt; </td></tr>
<tr class="memitem:addf25d6ed69ccfa6d90497d28384864a"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; Constraint &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="constraint_8hpp.html#addf25d6ed69ccfa6d90497d28384864a">cvx::box</a> (const Scalar &amp;lower, const Eigen::MatrixBase&lt; Derived &gt; &amp;middle, const Scalar &amp;upper)</td></tr>
<tr class="memdesc:addf25d6ed69ccfa6d90497d28384864a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a box constraint: lower &lt;= middle &lt;= upper.  <a href="constraint_8hpp.html#addf25d6ed69ccfa6d90497d28384864a">More...</a><br /></td></tr>
<tr class="separator:addf25d6ed69ccfa6d90497d28384864a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="aca2addc9b4392c2267258d392de9d831"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca2addc9b4392c2267258d392de9d831">&#9670;&nbsp;</a></span>box() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DerivedLower , typename DerivedMiddle , typename DerivedUpper &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;Constraint&gt; cvx::box </td>
          <td>(</td>
          <td class="paramtype">const Eigen::MatrixBase&lt; DerivedLower &gt; &amp;&#160;</td>
          <td class="paramname"><em>lower</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Eigen::MatrixBase&lt; DerivedMiddle &gt; &amp;&#160;</td>
          <td class="paramname"><em>middle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Eigen::MatrixBase&lt; DerivedUpper &gt; &amp;&#160;</td>
          <td class="paramname"><em>upper</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a box constraint: lower &lt;= middle &lt;= upper. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">DerivedLower</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
    <tr><td class="paramname">DerivedMiddle</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
    <tr><td class="paramname">DerivedUpper</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lower</td><td>The lower bound </td></tr>
    <tr><td class="paramname">middle</td><td>The middle term </td></tr>
    <tr><td class="paramname">upper</td><td>The upper bound </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>std::vector&lt;Constraint&gt; </dd></dl>

</div>
</div>
<a id="addf25d6ed69ccfa6d90497d28384864a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addf25d6ed69ccfa6d90497d28384864a">&#9670;&nbsp;</a></span>box() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;Constraint&gt; cvx::box </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>lower</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Eigen::MatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>middle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>upper</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a box constraint: lower &lt;= middle &lt;= upper. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lower</td><td>The lower bound </td></tr>
    <tr><td class="paramname">middle</td><td>The middle term </td></tr>
    <tr><td class="paramname">upper</td><td>The upper bound </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>std::vector&lt;Constraint&gt; The constraints to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="ac6ea445abc1a5f95514d8a67ba28ad65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6ea445abc1a5f95514d8a67ba28ad65">&#9670;&nbsp;</a></span>box() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Constraint cvx::box </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>lower</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>middle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>upper</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a box constraint: lower &lt;= middle &lt;= upper. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lower</td><td>The lower bound </td></tr>
    <tr><td class="paramname">middle</td><td>The middle term </td></tr>
    <tr><td class="paramname">upper</td><td>The upper bound </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="a83abda9c447832b598f853078bdb8966"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83abda9c447832b598f853078bdb8966">&#9670;&nbsp;</a></span>equalTo() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DerivedLhs , typename DerivedRhs &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;Constraint&gt; cvx::equalTo </td>
          <td>(</td>
          <td class="paramtype">const Eigen::MatrixBase&lt; DerivedLhs &gt; &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Eigen::MatrixBase&lt; DerivedRhs &gt; &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create an equality constraint: lhs == rhs. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">DerivedLhs</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
    <tr><td class="paramname">DerivedRhs</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="a430e9773f1927b043bdd2b3bf4dac4b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a430e9773f1927b043bdd2b3bf4dac4b6">&#9670;&nbsp;</a></span>equalTo() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;Constraint&gt; cvx::equalTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Eigen::MatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create an equality constraint: lhs == rhs. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="a19ae6dab85befb1637b466555a80dbe1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19ae6dab85befb1637b466555a80dbe1">&#9670;&nbsp;</a></span>equalTo() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Constraint cvx::equalTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create an equality constraint: lhs == rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="aaca6a5bd054a7fb42e93b2e7cf143e79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaca6a5bd054a7fb42e93b2e7cf143e79">&#9670;&nbsp;</a></span>greaterThan() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;Constraint&gt; cvx::greaterThan </td>
          <td>(</td>
          <td class="paramtype">const Eigen::MatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a greater than or equal constraint: lhs &gt;= rhs. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="ac0e99c4d1f884f47b6c9f87d82c4cf5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0e99c4d1f884f47b6c9f87d82c4cf5b">&#9670;&nbsp;</a></span>greaterThan() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DerivedLhs , typename DerivedRhs &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;Constraint&gt; cvx::greaterThan </td>
          <td>(</td>
          <td class="paramtype">const Eigen::MatrixBase&lt; DerivedLhs &gt; &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Eigen::MatrixBase&lt; DerivedRhs &gt; &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a greater than or equal constraint: lhs &gt;= rhs. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">DerivedLhs</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
    <tr><td class="paramname">DerivedRhs</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="a3d551a3d671699679e8ef965d4c4e807"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d551a3d671699679e8ef965d4c4e807">&#9670;&nbsp;</a></span>greaterThan() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;Constraint&gt; cvx::greaterThan </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Eigen::MatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a greater than or equal constraint: lhs &gt;= rhs. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="acdc34f6fa683a0f38f352295dad8981f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdc34f6fa683a0f38f352295dad8981f">&#9670;&nbsp;</a></span>greaterThan() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Constraint cvx::greaterThan </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a greater than or equal constraint: lhs &gt;= rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="a91b384bbdb605f57390341e94eba80a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91b384bbdb605f57390341e94eba80a1">&#9670;&nbsp;</a></span>lessThan() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;Constraint&gt; cvx::lessThan </td>
          <td>(</td>
          <td class="paramtype">const Eigen::MatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a less than or equal constraint: lhs &lt;= rhs. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="a92e44c5dfa714835c1ab825db8da7653"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92e44c5dfa714835c1ab825db8da7653">&#9670;&nbsp;</a></span>lessThan() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DerivedLhs , typename DerivedRhs &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;Constraint&gt; cvx::lessThan </td>
          <td>(</td>
          <td class="paramtype">const Eigen::MatrixBase&lt; DerivedLhs &gt; &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Eigen::MatrixBase&lt; DerivedRhs &gt; &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a less than or equal constraint: lhs &lt;= rhs. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">DerivedLhs</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
    <tr><td class="paramname">DerivedRhs</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="a41ba5f4943a13d2265aedbf8de1f45ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41ba5f4943a13d2265aedbf8de1f45ef">&#9670;&nbsp;</a></span>lessThan() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Derived &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;Constraint&gt; cvx::lessThan </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Eigen::MatrixBase&lt; Derived &gt; &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a less than or equal constraint: lhs &lt;= rhs. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">Derived</td><td>Has to be <a class="el" href="classcvx_1_1Scalar.html">cvx::Scalar</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
<a id="ab66996674d0127fea7f2615269365fe8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab66996674d0127fea7f2615269365fe8">&#9670;&nbsp;</a></span>lessThan() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Constraint cvx::lessThan </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>lhs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classcvx_1_1Scalar.html">Scalar</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a less than or equal constraint: lhs &lt;= rhs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lhs</td><td>The left hand side </td></tr>
    <tr><td class="paramname">rhs</td><td>The right hand side </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Constraint The constraint to pass to addConstraint() </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
